Optimal. Leaf size=99 \[ \frac {a (A+B) \cos (e+f x)}{f \sqrt {a+a \sin (e+f x)} (c-c \sin (e+f x))^{3/2}}+\frac {a B \cos (e+f x) \log (1-\sin (e+f x))}{c f \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.24, antiderivative size = 99, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 40, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {3050, 2816,
2746, 31, 2817} \begin {gather*} \frac {a (A+B) \cos (e+f x)}{f \sqrt {a \sin (e+f x)+a} (c-c \sin (e+f x))^{3/2}}+\frac {a B \cos (e+f x) \log (1-\sin (e+f x))}{c f \sqrt {a \sin (e+f x)+a} \sqrt {c-c \sin (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 2746
Rule 2816
Rule 2817
Rule 3050
Rubi steps
\begin {align*} \int \frac {\sqrt {a+a \sin (e+f x)} (A+B \sin (e+f x))}{(c-c \sin (e+f x))^{3/2}} \, dx &=(A+B) \int \frac {\sqrt {a+a \sin (e+f x)}}{(c-c \sin (e+f x))^{3/2}} \, dx-\frac {B \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {c-c \sin (e+f x)}} \, dx}{c}\\ &=\frac {a (A+B) \cos (e+f x)}{f \sqrt {a+a \sin (e+f x)} (c-c \sin (e+f x))^{3/2}}-\frac {(a B \cos (e+f x)) \int \frac {\cos (e+f x)}{c-c \sin (e+f x)} \, dx}{\sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}\\ &=\frac {a (A+B) \cos (e+f x)}{f \sqrt {a+a \sin (e+f x)} (c-c \sin (e+f x))^{3/2}}+\frac {(a B \cos (e+f x)) \text {Subst}\left (\int \frac {1}{c+x} \, dx,x,-c \sin (e+f x)\right )}{c f \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}\\ &=\frac {a (A+B) \cos (e+f x)}{f \sqrt {a+a \sin (e+f x)} (c-c \sin (e+f x))^{3/2}}+\frac {a B \cos (e+f x) \log (1-\sin (e+f x))}{c f \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.67, size = 118, normalized size = 1.19 \begin {gather*} \frac {\sec (e+f x) \sqrt {a (1+\sin (e+f x))} \left (A+B-B \log \left (e^{i (e+f x)}\right )+2 B \log \left (-i+e^{i (e+f x)}\right )+B \left (\log \left (e^{i (e+f x)}\right )-2 \log \left (-i+e^{i (e+f x)}\right )\right ) \sin (e+f x)\right )}{c f \sqrt {c-c \sin (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(402\) vs.
\(2(91)=182\).
time = 0.35, size = 403, normalized size = 4.07
method | result | size |
default | \(\frac {\left (-2 B \ln \left (-\frac {-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}\right ) \left (\cos ^{2}\left (f x +e \right )\right )+2 B \ln \left (-\frac {-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}\right ) \sin \left (f x +e \right ) \cos \left (f x +e \right )+B \ln \left (\frac {2}{1+\cos \left (f x +e \right )}\right ) \left (\cos ^{2}\left (f x +e \right )\right )-B \ln \left (\frac {2}{1+\cos \left (f x +e \right )}\right ) \sin \left (f x +e \right ) \cos \left (f x +e \right )+A \left (\cos ^{2}\left (f x +e \right )\right )-A \sin \left (f x +e \right ) \cos \left (f x +e \right )-2 B \cos \left (f x +e \right ) \ln \left (-\frac {-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}\right )-4 B \sin \left (f x +e \right ) \ln \left (-\frac {-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}\right )+B \left (\cos ^{2}\left (f x +e \right )\right )-B \sin \left (f x +e \right ) \cos \left (f x +e \right )+B \cos \left (f x +e \right ) \ln \left (\frac {2}{1+\cos \left (f x +e \right )}\right )+2 B \ln \left (\frac {2}{1+\cos \left (f x +e \right )}\right ) \sin \left (f x +e \right )+A \sin \left (f x +e \right )+4 B \ln \left (-\frac {-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}\right )+B \sin \left (f x +e \right )-2 B \ln \left (\frac {2}{1+\cos \left (f x +e \right )}\right )-A -B \right ) \sqrt {a \left (1+\sin \left (f x +e \right )\right )}}{f \left (-1+\cos \left (f x +e \right )-\sin \left (f x +e \right )\right ) \left (-c \left (\sin \left (f x +e \right )-1\right )\right )^{\frac {3}{2}}}\) | \(403\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {a \left (\sin {\left (e + f x \right )} + 1\right )} \left (A + B \sin {\left (e + f x \right )}\right )}{\left (- c \left (\sin {\left (e + f x \right )} - 1\right )\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.48, size = 118, normalized size = 1.19 \begin {gather*} -\frac {{\left (4 \, B \sqrt {c} \log \left ({\left | \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) \right |}\right ) \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) + \frac {A \sqrt {c} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) + B \sqrt {c} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}{\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2}}\right )} \sqrt {a}}{2 \, c^{2} f \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\left (A+B\,\sin \left (e+f\,x\right )\right )\,\sqrt {a+a\,\sin \left (e+f\,x\right )}}{{\left (c-c\,\sin \left (e+f\,x\right )\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________